package com.playtika.testcontainer.selenium;

import org.springframework.beans.factory.annotation.Value;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;



/**
 * Annotation at the field or method/constructor parameter level that injects the docker
 * host that got allocated at runtime. Provides a convenient alternative for
 * <code>&#064;Value(&quot;${embedded.selenium.dockerhost}&quot;)</code>.
 *

 */
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Value("${embedded.selenium.dockerhost}")
public @interface DockerHostname {

}